# Create your views here.
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.template import RequestContext
from feedbag.apps.product.models import Review


def home(request):
	reviews = []
	try:
		reviews = Review.objects.all().filter(active=True)
	except:
		pass
	return render_to_response('home.html', {'reviews': reviews},
							  context_instance=RequestContext(request))
